@use "../../../scss/abstracts/mixins";

#add-item-panel {
  max-width: 850px;
  margin: auto;

  form {
    display: flex;
    flex-direction: column;
    gap: var(--section-padding);
  }

  .item-copy {
    position: relative;

    .add-item-copy {
      position: relative;

      input[type="radio"] {
        display: none;
      }

      label {
        line-height: 48px;
        padding: 0 10px 0 0;
      }

      input {
        font-size: inherit;
      }
    }
  }

  .add-item-name,
  .add-item-copy {
    .input-validation-message {
      color: var(--error-color);
      padding-top: 2px;
      font-weight: 500;
    }

    .input-message-disabled {
      display: none;
    }
  }

  .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;

    img {
      position: relative;
      width: 100%;
      height: 100%;
    }
  }

  .default-icon {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-weight: bold;
    font-size: 125%;
    color: #ffffff;
    text-shadow: rgba(0, 0, 0, 0.25) 0 -1px 1px;
    opacity: 0.75;

    .b {
      text-transform: lowercase;
    }
  }

  .c-D33833 {
    border: 1px solid #900;
    box-shadow:
      inset #900 0 0 1px,
      inset #fff 0 0 0 1px,
      0 5px 3px -2px rgba(0, 0, 0, 0.25),
      inset -5px -5px 10px 2px #903,
      inset -5px -10px 15px 14px #d33833;
  }

  .c-6D6B6D {
    border: 1px solid #000;
    box-shadow:
      inset #333 0 0 1px,
      inset #fff 0 0 0 1px,
      0 5px 3px -2px rgba(0, 0, 0, 0.25),
      inset -5px -5px 10px 2px #222,
      inset -5px -10px 15px 14px #555;
  }

  .c-335061 {
    border: 1px solid #356;
    box-shadow:
      inset #024 0 0 1px,
      inset #fff 0 0 0 1px,
      0 5px 3px -2px rgba(0, 0, 0, 0.25),
      inset -5px -5px 10px 2px #012,
      inset -5px -10px 15px 14px #335061;
  }

  .c-49728B {
    border: 1px solid #036;
    box-shadow:
      inset #036 0 0 1px,
      inset #fff 0 0 0 1px,
      0 5px 3px -2px rgba(0, 0, 0, 0.25),
      inset -5px -5px 10px 2px #036,
      inset -5px -10px 15px 14px #49728b;
  }

  .c-6699CC {
    border: 1px solid #6699cc;
    box-shadow:
      inset #003399 0 0 1px,
      inset #ffffff 0 0 0 1px,
      0 5px 3px -2px rgba(0, 0, 0, 0.25),
      inset -5px -5px 10px 2px #336699,
      inset -5px -10px 15px 14px #6699cc;
  }

  input {
    width: 50%;
    min-width: 300px;
  }

  .categories {
    .category {
      .header {
        padding: 0 20px;

        h2 {
          margin: 0;
          padding: 15px 0 0;
        }

        p {
          margin-top: 5px;
        }
      }

      .desc {
        color: var(--text-color-secondary);
      }
    }
  }

  .categories.flat {
    .category {
      border-bottom: none;

      .header {
        display: none;
      }
    }
  }
}

.j-item-options li,
.j-item-options {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.j-item-options {
  display: flex;
  flex-direction: column;
  gap: 5px;

  li.active {
    &::before {
      background: var(--item-background--hover);
    }
  }

  li {
    @include mixins.item;

    -webkit-touch-callout: none;
    user-select: none;
    padding: 0.75rem 1rem;
    min-height: 68px;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;

    .icon {
      grid-row: span 2;
    }

    label {
      display: block;
      font-size: var(--font-size-sm);
      font-weight: 500;
      color: var(--text-color);
      cursor: pointer;

      input {
        position: absolute;
        top: 24px;
        left: 25px;
        display: none;
      }
    }

    .desc {
      grid-column: 2;
    }
  }
}
